package com.binge.test6;

import java.time.LocalDate;
import java.time.ZoneOffset;

/**
 * ClassName:Main2
 * Package:com.binge.test6
 * Description:
 *
 * @Author @Bin
 * @Date 2024/1/2-14:56
 * @Version: v1.0
 */
public class Main2 {

    public static void main(String[] args) {
        long epochMilli = LocalDate.now().minusDays(1).atStartOfDay().toInstant(ZoneOffset.UTC).toEpochMilli();
        System.out.println(epochMilli);
        long epochMilli1 = LocalDate.now().atStartOfDay().toInstant(ZoneOffset.UTC).toEpochMilli();
        System.out.println(epochMilli1);
    }
}
